package com.qqt.csr.im.entity.msg;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Author: yang hao
 * @Date: 2024/10/16 17:23
 * @Description: 文件消息
 **/
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
@Accessors(chain = true)
@Schema(description = "文件消息")
public class FileContent extends Content {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "文件下载地址，可通过该 URL 地址直接下载相应文件")
    private String url;

    @Schema(description = "文件数据大小，单位：字节")
    private String fileSize;

    @Schema(description = "文件名称")
    private String filename;

}
